home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 October: Mac OS SDK / Dev.CD Oct 00 SDK1.toast / Development Kits / Mac OS / Apple Guide / Engineering / APISample / APISampleMPW / TApplication / TApplication.o.make < prev    next >
Encoding:
Text File  |  1992-08-29  |  2.1 KB  |  71 lines  |  [TEXT/MPS ]

  1. #------------------------------------------------------------------------------
  2. #
  3. #    MultiFinder-Aware Simple Shapes Sample Application
  4. #
  5. #    TApplication
  6. #
  7. #    This file: TApplication.make    -    Make source
  8. #
  9. #    Copyright © 1988-1991 Apple Computer, Inc.
  10. #    All rights reserved.
  11. #
  12. #
  13. #   There are four main classes in this program. Each of
  14. #   these classes has a definition (.h) file and an
  15. #   implementation (.cp) file.  
  16. #   
  17. #   The TApplication class does all of the basic event
  18. #   handling and initialization necessary for Mac Toolbox
  19. #   applications. It maintains a list of TDocument objects,
  20. #   and passes events to the correct TDocument class when
  21. #   apropriate. 
  22. #   
  23. #   The TDocument class does all of the basic document
  24. #   handling work. TDocuments are objects that are
  25. #   associated with a window. Methods are provided to deal
  26. #   with update, activate, mouse-click, key down, and other
  27. #   events. Some additional classes which implement a
  28. #   linked list of TDocument objects are provided. 
  29. #   
  30. #   The TApplication and TDocument classes together define
  31. #   a basic framework for Mac applications, without having
  32. #   any specific knowledge about the type of data being
  33. #   displayed by the application's documents. They are a
  34. #   (very) crude implementation of the MacApp application
  35. #   model, without the sophisticated view heirarchies or
  36. #   any real error handling. 
  37. #   
  38. #------------------------------------------------------------------------------
  39.  
  40. Make            =    TApplication.o.make
  41.  
  42. LocalHeaders    =    TApplication.h        ∂
  43.                     TApplicationCommon.h
  44.  
  45. DistantHeaders    =
  46.                     
  47. LocalSources    =    TApplication.cp
  48.     
  49. Resources        =    TApplication.r
  50.  
  51. Compilation        =    TApplication.cp.o
  52.  
  53. Library            =    TApplication.o
  54.  
  55. # turn on/off SADE symbols
  56. SymOpts = -sym off
  57.  
  58. # C++ options
  59. CPlusOptions = -mf {SymOpts}
  60.  
  61. {Compilation} ƒƒ {Make} {LocalHeaders} {DistantHeaders} {LocalSources}   
  62.     CPlus {CPlusOptions} {LocalSources} -o {Compilation}
  63.  
  64. # Include the resources
  65. {Compilation} ƒƒ {Make} {LocalHeaders} {DistantHeaders} {LocalSources} {Resources} 
  66.     Rez -append -o {targ} {Resources}
  67.  
  68. # Save the compilation into its library
  69. {Library} ƒƒ {Make} {Compilation} 
  70.     Lib -o {Targ} {SymOpts} {Compilation}
  71.